<template>
	<view>
		<view class="link-box">
			<view class="link-title">
				<span class="title-line"></span>友情链接：
			</view>
			<view class="link-select">
				<view> <uni-data-select v-model="value" :localdata="range" @change="change"></uni-data-select></view>
				<view> <uni-data-select v-model="value" :localdata="range" @change="change"></uni-data-select></view>
				<view> <uni-data-select v-model="value" :localdata="range" @change="change"></uni-data-select></view>
			</view>
		</view>
		<view class="footer-main">
			<view class="main-top">
				<view class="top-left">
					<view class="foot-img">
						<image src="../static/logo1.png" mode=""></image>
					</view>
					<view class="foot-text">联系电话：<span class="tel">0851-85274393</span></view>
					<view class="foot-text">联系地址：<span>贵阳市云岩区南垭路67号</span></view>
				</view>
				<view class="top-right">
					<image src="../static/code.png" mode=""></image>
					<view>扫码关注公众号</view>
				</view>
			</view>
			<view class="main-mid">
				<view class="mid-top">
					<view>协会简介</view>
					<view>协会章程</view>
					<view>会员名录</view>
				</view>
				<view class="mid-menuList">
					<view class="menu-item" v-for="(item,index) in menuList" :key="index">{{item.title}}</view>
				</view>
			</view>
			<view class="main-mottom">
				<view> Copyright © 2023 贵州省担保业协会 版权所有</view>
				<view> 备案号：黔ICP备20003593号-1</view>
			</view>
			<view class="to-top" @click="goTop">
				<image src="../static/top.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: 0,
				range: [{
						value: 0,
						text: "篮球"
					},
					{
						value: 1,
						text: "足球"
					},
					{
						value: 2,
						text: "游泳"
					},
				],
				menuList: [{
						title: '行业动态',
						url: ''
					},
					{
						title: '协会动态',
						url: ''
					},
					{
						title: '会员动态',
						url: ''
					},
					{
						title: '政策法规',
						url: ''
					},
					{
						title: '协会公告',
						url: ''
					},
					{
						title: '党建园地',
						url: ''
					},
					{
						title: '入会申请',
						url: ''
					},
					{
						title: '资料下载',
						url: ''
					},
				]
			}
		},
		methods: {
			change(e) {
				console.log("e:", e);
			},
			goTop() {
				uni.pageScrollTo({
					scrollTop: 0,
					duration: 300
				});
			},
		}
	}
</script>

<style lang="scss">
	.link-box{
		background-color: #F5F9FD;
		padding: 40rpx 20rpx;
		
		.link-title{
			color: #285CAC;
			font-weight: bold;
			display: flex;
			align-items: center;
			font-size: 28rpx;
			margin-bottom: 30rpx;
			.title-line{
				width: 6rpx;
				height: 30rpx;
				border-radius: 2rpx;
				display: block;
				margin-right: 5rpx;
				background-color: #285CAC;
			}
		}
		
		.link-select{
			display: flex;
			justify-content: space-between;
			
			>view{
				width: 30%;
				
			}
		}
	}
	.footer-main {
		padding: 20rpx;
		width: 100%;
		background-color: #252525;
		color: #999999;
		font-size: 24rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		position: relative;

		.main-top {
			margin-top: 20rpx;
			flex: 2;
			display: flex;
			justify-content: space-between;

			.top-left {
				display: flex;
				justify-content: space-between;
				flex-direction: column;

				.foot-img {
					padding-bottom: 5rpx;
					border-bottom: 0.1rpx solid #A6A6A6;

					>image {
						width: 343rpx;
						height: 52rpx;
					}
				}

				.tel {
					font-size: 32rpx;
					color: #fff;
					font-weight: bold;
				}
			}

			.top-right {
				text-align: center;

				>image {
					width: 150rpx;
					height: 150rpx;
				}
			}
		}

		.main-mid {
			flex: 2;
			margin-top: 65rpx;

			.mid-top {
				width: 70%;
				margin: 0 auto;
				display: flex;
				justify-content: space-between;
			}

			.mid-menuList {
				display: flex;
				padding: 40rpx 50rpx 0rpx 50rpx;
				justify-content: space-between;
				flex-wrap: wrap;
				border-bottom: 1rpx solid #373B4F;

				.menu-item {
					width: 21%;
					text-align: center;
					margin-bottom: 40rpx;
				}
			}
		}

		.main-mottom {
			flex: 1;
			text-align: center;
			padding: 10rpx 0;
			line-height: 2;
		}

		.to-top {
			position: absolute;
			right: 15rpx;
			top: 40%;

			>image {
				width: 84rpx;
				height: 88rpx;
			}
		}
	}
</style>